Page({
  data: {
    notifications: [
      { id: 1, content: '您的订阅内容更新了', time: '2024-12-01 12:00' },
      { id: 2, content: '新的积分活动已上线', time: '2024-12-01 11:30' },
      // 更多通知
    ]
  },

  viewNotificationDetail(e) {
    const notificationId = e.currentTarget.dataset.id;
    wx.navigateTo({
      url: `/pages/notificationDetail/notificationDetail?id=${notificationId}`,
    });
  }
});
